package com.csi.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;

@Data
public class EmployeeDetail {
    private long id;//员工id
    private String username;//员工用户名
    private String name;//员工姓名
    private String phone; //员工手机号
    private String idCard;//员工身份证号
    private String userAddress;//员工地址

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd") //转换时间格式
    private Timestamp entryTime;//入职时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Timestamp leaveTime;//离职时间
    private int sex; //性别
    private long hotelId;//酒店id
    private String createName; //办理入职人
    private String handleName; //办理离职人
    private String roleName;//角色名字
    private long roleId;//角色id

    @Schema(description = "登录类型", required = true)
    private String type; //登录类型(平台/酒店/旅行社)
}
